package com.hb;

import java.util.Date;

import com.hb.alerts.AlertService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.hb.domain.Spittle;

public class SpittleJmsMain {
  public static void main(String[] args) {
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("META-INF/message_service.xml");
    AlertService alertService = context.getBean(AlertService.class);
    
    Spittle spittle = new Spittle(1L, null, "Hello", new Date());
    alertService.sendSpittleAlert(spittle);
  }
}
